﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;
using System.Device.Location;

namespace WP7WhereAmI
{
    public partial class MainPage : PhoneApplicationPage
    {
        // Constructor
        public MainPage()
        {
            InitializeComponent();

            var geo = new GeoCoordinateWatcher();
            geo.StatusChanged += new EventHandler<GeoPositionStatusChangedEventArgs>(geo_StatusChanged);
            geo.PositionChanged += new EventHandler<GeoPositionChangedEventArgs<GeoCoordinate>>(geo_PositionChanged);

            var running = geo.TryStart(true, new TimeSpan(0, 0, 10));

        }

        void geo_PositionChanged(object sender, GeoPositionChangedEventArgs<GeoCoordinate> e)
        {
            throw new NotImplementedException();
        }

        void geo_StatusChanged(object sender, GeoPositionStatusChangedEventArgs e)
        {
            throw new NotImplementedException();
        }
    }
}
